package studay.chain;

/**
 * @program: 设计模式
 * @description:
 * @author: Tom
 * @create: 2022-01-08 13:22
 **/
public abstract class RiskControlManager {

    protected String name;

    /**
     * 更严格的风控策略
     */
    protected RiskControlManager superior;

    public RiskControlManager(String name){
        this.name=name;
    }

    /**
     * 设置更严格的风控策略
     * @param superior
     */
    public void setSuperior(RiskControlManager superior){
        this.superior = superior;
    }

    /**
     * 处理请求
     * @param request
     */
    public abstract void  handlerRequest(Request request);

}
